package com.hans.myscanner.Scanner.Activity;

import android.content.ClipboardManager;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.EditText;
import android.widget.GridView;

import com.haha.extend.HeadBar.BaseHeaderView;
import com.haha.extend.HeadBar.ImageInLeftAndRight;
import com.hans.Utils.ContactUtils;
import com.hans.myscanner.R;

/**
 * Created by Administrator on 2016/7/9.
 */
public class DecodedTextActivity extends AppCompatActivity {
    //解码
    private ImageInLeftAndRight header;
    private EditText decodedTV;
    private GridView sendGV;
    private ClipboardManager clip;
    private ContactUtils cu;
    private int counts;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_decoded_text);
        findView();
        initView();
    }

    private void findView() {
        header= (ImageInLeftAndRight) findViewById(R.id.header);
        decodedTV= (EditText) findViewById(R.id.decoded_textview);
        sendGV= (GridView) findViewById(R.id.send_gridview);

    }
    private void initView() {
        header.setOnHeaderClickListener(onHeaderClickListener);
        clip= (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
    }

    private  BaseHeaderView.OnHeaderClickListener onHeaderClickListener=new BaseHeaderView.OnHeaderClickListener() {
        @Override
        public void onHeaderLeftClicked() {
            finish();
        }

        @Override
        public void onHeaderCenterClicked() {

        }

        @Override
        public void onHeaderRightClicked() {

        }
    };
}
